package cn.hsa.fqz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableAsync
@EnableSwagger2
@EnableCaching
@ImportResource("classpath*:config/spring.xml")
@MapperScan({"cn.hsa.**.dao"})
@ComponentScan(basePackages = {"cn.hsa"}, excludeFilters= {@ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE)})
@SpringBootApplication
public class HsaFqzGenericApplication {

    public static void main(String[] args) {

        SpringApplication.run(HsaFqzGenericApplication.class, args);


    }

}
